<?php
class Replied extends CI_Controller{
	function __Construct(){
		parent::__Construct();
	}
	function replied(){
		$this->load->model('replied_mgr');
        $this->load->library('pagination');
        $this->session->set_userdata('count_replied', $this->db->count_all('tbl_replies'));

        $config['base_url'] = site_url('admin/allreplied');
        $config['total_rows'] = $this->db->count_all('tbl_replies');
       
        $config['per_page'] = 10;
        $config["uri_segment"] = 3;
        $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
        $this->pagination->initialize($config);

        $data['pages'] = $this->pagination->create_links();
        $data['title'] = 'All Replies';
        $data['forum_replied'] = $this->replied_mgr->allreplied($config['per_page'], $page);

        $this->load->view('admin/allreplied', $data);
	}
}
?>